package week9.Q2;

import week9.Q2.American;
import week9.Q2.Chinese;
import week9.Q2.Eatable;
import week9.Q2.Indian;

public class EatableTest {
    public static void main(String[] args) {
        Eatable eatable[]=new Eatable[3];
        eatable[0]=new Chinese();
        eatable[1]=new American();
        eatable[2]=new Indian();

        for (int i = 0; i < eatable.length; i++) {
            eatable[i].eat();
        }
    }
}
